<template>
	<view>
		<view class="mask">
			<view class="main">
				<image src="../../static/icon3/sddffsddfvfdgfd.png" mode="aspectFill"></image>
				<!-- <text>雇主正在等待您的开工，取消任务后<text>{{' '+day+'天内 '}}</text>您的账户将无法接单</text> -->
				<text>雇主正在等待您的开工，取消任务后将扣除评分</text>
				<view class="button-view">
					<view class="yes" @click="$emit('handleRight')">是</view>
					<view class="no" @click="$emit('handleLeft')">否</view>
				</view>
			</view>
		</view>
	</view>
</template>
<script>
	export default {
		props: ['day'],
	}
</script>
<style lang="less" scoped>
	.mask {
		height: 100vh;
		width: 100vw;
		top: 0;
		right: 0;
		position: fixed;
		z-index: 998;
		background: rgba(0, 0, 0, 0.4);
		display: flex;
		justify-content: center;
		align-items: center;
	}

	.main {
		width: 550rpx;
		height: 462rpx;
		background: #FFFFFF;
		border-radius: 12rpx;
		display: flex;
		flex-direction: column;
		align-items: center;
		position: relative;

		&>image {
			width: 140rpx;
			height: 140rpx;
			margin: 60rpx 0 40rpx 0;
		}

		&>text {
			width: 478rpx;
			font-size: 32rpx;
			font-weight: 500;
			color: #787878;
			line-height: 49rpx;
			text-align: center;
		}

		&>.button-view {
			width: 550rpx;
			height: 80rpx;
			border-top: 1rpx solid #BDBDBD;
			position: absolute;
			bottom: 0px;
			display: flex;
			justify-content: space-between;

			&>.yes {
				width: 274rpx;
				height: 80rpx;
				border-right: 1rpx solid #BDBDBD;
				font-size: 32rpx;
				text-align: center;
				font-weight: 500;
				color: #787878;
				line-height: 80rpx;
			}

			&>.no {
				width: 275rpx;
				height: 80rpx;
				font-size: 32rpx;
				text-align: center;
				font-weight: 500;
				color: #FE4B28;
				line-height: 80rpx;
			}
		}
	}
</style>
